import { useContext } from "react";

import { InfoContext, TokenContext } from "../../App";

function useInfoContext() {
  const info = useContext(InfoContext);
  const token = useContext(TokenContext);

  return [info, token];
}

export default useInfoContext;